Skip to content

fix: CMD + arrows should not navigate RAC Tabs as it's a browser shortcut#9650

Open
Zdog1206 wants to merge 2 commits intoadobe:mainfrom
Zdog1206:Open-source-Contribution
Open

fix: CMD + arrows should not navigate RAC Tabs as it's a browser shortcut#9650
Zdog1206 wants to merge 2 commits intoadobe:mainfrom
Zdog1206:Open-source-Contribution

Conversation

@Zdog1206
Copy link

Fix issue adobe#9648 such that pressing CMD + left/right arrow actually triggers the browser's forward and back actions instead of moving between the tabs on the screen.
Another user requested the code be written slightly differently to avoid issues in other parts of the program.
@yihuiliao yihuiliao removed the v3 label Feb 12, 2026
@snowystinger snowystinger changed the title Open source contribution fix: CMD + arrows should not navigate RAC Tabs as it's a browser shortcut Feb 12, 2026
}
};

if (manager.selectionMode === 'single' && (e.metaKey || e.altKey)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is close, but it's going to affect too many things. I think it should be restricted to Left/Right arrows OR handling should be moved to the Tab's keyboard delegate.
Otherwise it may interfere with some of our selectionMode+selectionBehaviour https://react-aria.adobe.com/ListBox#selection

It looks like Up/Down + meta scrolls the entire page or moves the text cursor to the start or end of an input. I think in Tabs it shouldn't do anything. Much like the Toolbar in this github comment box.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants